Optimal. Leaf size=66 \[ -\frac {x^{-n p} \left (a+b x^{n-q}\right ) \left (b x^n+a x^q\right )^p \, _2F_1\left (1,1;1-p;-\frac {b x^{n-q}}{a}\right )}{a p (n-q)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 74, normalized size of antiderivative = 1.12, number of steps
used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {2057, 372, 371}
\begin {gather*} -\frac {x^{-n p} \left (\frac {b x^{n-q}}{a}+1\right )^{-p} \left (a x^q+b x^n\right )^p \, _2F_1\left (-p,-p;1-p;-\frac {b x^{n-q}}{a}\right )}{p (n-q)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 372
Rule 2057
Rubi steps
\begin {align*} \int x^{-1-n p} \left (b x^n+a x^q\right )^p \, dx &=\left (x^{-p q} \left (a+b x^{n-q}\right )^{-p} \left (b x^n+a x^q\right )^p\right ) \int x^{-1-n p+p q} \left (a+b x^{n-q}\right )^p \, dx\\ &=\left (x^{-p q} \left (1+\frac {b x^{n-q}}{a}\right )^{-p} \left (b x^n+a x^q\right )^p\right ) \int x^{-1-n p+p q} \left (1+\frac {b x^{n-q}}{a}\right )^p \, dx\\ &=-\frac {x^{-n p} \left (1+\frac {b x^{n-q}}{a}\right )^{-p} \left (b x^n+a x^q\right )^p \, _2F_1\left (-p,-p;1-p;-\frac {b x^{n-q}}{a}\right )}{p (n-q)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 74, normalized size = 1.12 \begin {gather*} -\frac {x^{-n p} \left (1+\frac {b x^{n-q}}{a}\right )^{-p} \left (b x^n+a x^q\right )^p \, _2F_1\left (-p,-p;1-p;-\frac {b x^{n-q}}{a}\right )}{p (n-q)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.21, size = 0, normalized size = 0.00 \[\int x^{-n p -1} \left (b \,x^{n}+a \,x^{q}\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{- n p - 1} \left (a x^{q} + b x^{n}\right )^{p}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {{\left (b\,x^n+a\,x^q\right )}^p}{x^{n\,p+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________